package com.tnsw.coreutils.queuemanager;

import java.io.Serializable;
import java.util.UUID;

public class QueueInfo implements Serializable {
	
	private Object obj;
	private long id;
	protected static final long serialVersionUID = 1;
	private int forcedSubQueueId = -1;
	
	public QueueInfo(Object obj) {
		this.id = System.currentTimeMillis();
		this.obj = obj;
	}
	
	public QueueInfo(Object obj, int forcedSubQueueId) {
		this(obj);
		this.forcedSubQueueId = forcedSubQueueId;
				
	}
	
	public int getForcedSubQueueId() {
		return(this.forcedSubQueueId);
	}
	
	public Object getObject() {
		return(this.obj);
	}
	
	public long getQueueId() {
		return(this.id);
	}
}
